package indi.zhifa.learn.jenkins.helloworld2.web.service;

import indi.zhifa.learn.jenkins.helloworld2.web.entity.dto.DataAnalysisResult;
import indi.zhifa.learn.jenkins.helloworld2.web.entity.po.AnalysisTask;
import indi.zhifa.learn.jenkins.helloworld2.web.entity.request.DocKeyPassConfig;
import indi.zhifa.learn.jenkins.helloworld2.web.service.algorithm.datastructure.DocResultSet;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IDocAnalysisService {
    DocResultSet analysis(PDDocument pDoc, DocKeyPassConfig pDocKeyPassConfig) throws Exception;
    AnalysisTask create(Long pUserId, DocKeyPassConfig pKeyConfig);
    AnalysisTask uploadFile(Long pTaskId, MultipartFile pFile);
    AnalysisTask editKeyConfig(Long pTaskId, DocKeyPassConfig pKeyConfig);
    AnalysisTask analysis(Long pTaskId);
    AnalysisTask info(Long pTaskId);
    List<AnalysisTask> list(Long pUserId);
    void deleteTask(Long pTaskId);
}
